-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add YAML parsing support to mappings #1935
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: c8b36a8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🚀 Snapshot Release (
|
Package | Version | Info |
---|---|---|
@graphprotocol/graph-cli |
0.96.0-alpha-20250211043322-c8b36a86099a396661a27433f45d34d89397e98f |
npm ↗︎ unpkg ↗︎ |
@graphprotocol/graph-ts |
0.38.0-alpha-20250211043322-c8b36a86099a396661a27433f45d34d89397e98f |
npm ↗︎ unpkg ↗︎ |
59f799f
to
564b43c
Compare
Deploying graph-tooling with
|
Latest commit: |
c8b36a8
|
Status: | ✅ Deploy successful! |
Preview URL: | https://904ca5d1.graph-tooling.pages.dev |
Branch Preview URL: | https://ion-add-yaml-support.graph-tooling.pages.dev |
46c291a
to
12864a4
Compare
Thanks for the PR. Can you add some unit tests in |
12864a4
to
a1920a6
Compare
a1920a6
to
99d12e9
Compare
@YaroShkvorets I added tests to the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added one more test. Looks good.
This PR adds type definitions for two host functions that parse YAML documents and defines some helper methods to make working with YAML types nicer.
The main use case for this feature is to parse subgrah manifests, but it is flexible enough to allow parsing any YAML document.
Part of graphprotocol/graph-node#5772
Host functions are implemented in graphprotocol/graph-node#5785